/*
	Class: DocElemScript
	
		This class handles the <script /> tag. Scripts run during the parsing
		process meaning that previous containers exists, latter containers do
		not and no containers have been rendered yet.
*/
package com.frontalcode
{
	/**
	 * The DocElemInclude class handles the <script /> tag.
	 */
    public class DocElemScript extends DocumentElement
    {
		/**
		 * Creates a new DocElemScript instance.
		 * 
		 * @param document	The document this element belongs to.
		 * @param parent	The element's parent in the document tree.
		 * @param node		The XML node this element is associated with.
		 * @param options	Options affecting the behavior of this instance.
		 * 					(This object does not have built-in support for any
		 * 					options.)
		 */
		public function DocElemScript ( document : Document, parent : DocumentElement, node : XML, options : Object = null )
		{
			super ( document, parent, node, options );
			
			processesOwnContent = true;
			
			ActionScriptInterpreter.evaluate ( node.text ( ).toString ( ), this, null, null, null, document );
		}
	}
}
